/*
 * @Descripttion: 
 * @version: 
 * @Author: kk
 * @Date: 2020-10-24 09:37:23
 * @LastEditors: kk
 * @LastEditTime: 2020-10-27 10:35:09
 */
import axios from '../axios'

export default{
    getKills(data){
        return axios({
            url: `/itemKill/getKillList/1/100`,
            method: 'post',
            data:data
        })
    },
    getItemKill(id){
        return axios({
            url: `/itemKill/getItemKill/${id}`,
            method: 'get'
        })
    },
    getItemKillAndItem(id){
        return axios({
            url: `/itemKill/getItemKillAndItem/${id}`,
            method: 'get'
        })
    },
    getMd5(killId,userId){
        return axios({
            url: `/miaosha/md5/${killId}/${userId}`,
            method: 'get'
        })
    },
    kill1(killId,userId){
        return axios({
            url: `/miaosha/kill1/${killId}/${userId}`,
            method: 'get'
        })
    },
    kill2(killId,userId,md5){
        return axios({
            url: `/miaosha/kill2/${killId}/${userId}/${md5}`,
            method: 'post'
        })
    },
    //获取订单状态
    getOrderStatus(uuid,userId){
        return axios({
            url: `/pay/getOrder/${uuid}/${userId}`,
            method: 'post',
        })
    },
    //获取所有订单
    getAllOrder(userId){
        return axios({
            url: `/pay/getAllOrder/${userId}`,
            method: 'post'
        })
    },

    //支付
    payOrder(uuid,userId){
        return axios({
            url: `/pay/payOrder/${uuid}/${userId}`,
            method: 'post'
        })
    },

    //取消订单
    deleteOrder(uuid,userId){
        return axios({
            url: `/pay/cancel/${uuid}/${userId}`,
            method: 'post'
        })
    },
    getPayedOrder(userId){
        return axios({
            url: `/order/getOrders/${userId}`,
            method: 'get'
        })
    }
}
// return this.$axios.post("/itemKill/getKillList/1/100", this.registerForm)
